package com.kcwx.system.dtomap;

import org.mapstruct.*;
import com.kcwx.system.domain.SysConfig;
import com.kcwx.shareddomain.system.dto.SysConfigEditDto;

/**
 * 参数配置 mapstruct
 *
 */
@Mapper(componentModel = "spring",unmappedSourcePolicy= ReportingPolicy.IGNORE,nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface SysConfigMap {
    /** addDto to Entity*/
    @Mappings({@Mapping(target = "id", ignore = true)})
    SysConfig AddDtoToEntity(SysConfigEditDto addDto);
    /** editDto to Entity*/
    SysConfig EditDtoToEntity(SysConfigEditDto editDto);
}
